<?php

class Wall_Model_List extends Core_Model_Item_Abstract
{

    protected function _postDelete()
    {
        $itemTable = Engine_Api::_()->getItemTable('listItem');
        $itemSelect = $itemTable->select()
                ->where('list_id = ?', $this->getIdentity());
        foreach ($itemTable->fetchAll($itemSelect) as $item)
        {
            try
            {
                $item->delete();
            }
            catch (Exception $e)
            {
                // Silence
            }
        }
        
        parent::_postDelete();
    }

}

?>
